//
//  ViewControllerOfLogin.m
//  王宇先_03_登录注册
//
//  Created by wyx on 16/3/11.
//  Copyright © 2016年 Apon. All rights reserved.
//

#import "ViewControllerOfLogin.h"
#import "MyButton.h"
#import "LTView.h"

@interface ViewControllerOfLogin ()

@end

@implementation ViewControllerOfLogin

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    LTView *viewOfUserNmae = [[LTView alloc] initWithFrame:CGRectMake(40, 80, self.view.frame.size.width - 80, 40) withText:@"用户名:" placeHolder:@"请输入用户名"];
    [self.view addSubview:viewOfUserNmae];
    [viewOfUserNmae release];
    LTView *viewOfKey = [[LTView alloc] initWithFrame:CGRectMake(40, 160, self.view.frame.size.width - 80, 40) withText:@"密码:" placeHolder:@"请输入密码"];
    [self.view addSubview:viewOfKey];
    [viewOfKey release];
    LTView *viewOfEnterKey = [[LTView alloc] initWithFrame:CGRectMake(40, 240, self.view.frame.size.width - 80, 40) withText:@"确认密码:" placeHolder:@"再次确认密码"];
    [self.view addSubview:viewOfEnterKey];
    [viewOfEnterKey release];
    LTView *viewOfNumber = [[LTView alloc] initWithFrame:CGRectMake(40, 320, self.view.frame.size.width - 80, 40) withText:@"手机号:" placeHolder:@"请输入手机号"];
    [self.view addSubview:viewOfNumber];
    [viewOfNumber release];
    LTView *viewOfMail = [[LTView alloc] initWithFrame:CGRectMake(40, 400, self.view.frame.size.width - 80, 40) withText:@"邮箱:" placeHolder:@"请输入邮箱"];
    [self.view addSubview:viewOfMail];
    [viewOfMail release];
    MyButton *buttonOfEnter = [MyButton buttonWithType:UIButtonTypeSystem];
    [self.view addSubview:buttonOfEnter];
    [buttonOfEnter setFrame:CGRectMake(130, 480, 50, 40)];
    [buttonOfEnter setTitle:@"注册" forState: UIControlStateNormal];
    buttonOfEnter.titleLabel.font = [UIFont systemFontOfSize:23];
    [buttonOfEnter setTitleColor:[UIColor yellowColor] forState:UIControlStateNormal];
    [buttonOfEnter addTarget:self action:@selector(handleOfBack) forControlEvents:UIControlEventTouchUpInside];
    MyButton *buttonOfCancel = [MyButton buttonWithType:UIButtonTypeSystem];
    [self.view addSubview:buttonOfCancel];
    [buttonOfCancel setFrame:CGRectMake(230, 480, 50, 40)];
    [buttonOfCancel setTitle:@"取消" forState: UIControlStateNormal];
    buttonOfCancel.titleLabel.font = [UIFont systemFontOfSize:23];
    [buttonOfCancel setTintColor:[UIColor yellowColor]];
    [buttonOfCancel addTarget:self action:@selector(handleOfBack) forControlEvents:UIControlEventTouchUpInside];
}
- (void)handleOfBack {
    [self dismissViewControllerAnimated:YES completion:^{
    }];
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
